package com.gym.dao;

import com.gym.pojo.Personaltrainer;
import com.gym.pojo.Train;
import com.gym.vo.TrainVo;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface TrainDao {
    //教练列表
    public List<Train> selectjl(String trainname);
    //新增教练
    public int insertjl(Train train);
    public int insertsjd(Personaltrainer personaltrainer);
    //修改教练
    public int updatejl(Train train);
    //删除教练
    public int deletejl(int trainId);
    //查看教练后做修改
    public Train selectjlid(int trainId);
    //删除教练数据
    public int deletesj(int trainId);
    //删除私教
    public int deletesjs(int personalId);
    //私教人员复选框
    public List<Train> selectsjd();
    //判断教练已存在
    public int selectycz(String trainname);
}
